

public class School {
    private String name;
    
    private int num; 
    static{
        library="静态代码块-栋梁图书馆";
    }
    public static String library="栋梁图书馆";
    public void show(){
        System.out.println("学校名称："+name);
        System.out.println("图书馆："+library);
        System.out.println("学生人数："+num);

    }
    public void setLibrary(String library){
        this.library=library;
    }
   
    public School(){
    }
    public School(String name,String library,int num){
        this.name=name;
        this.library=library;
        this.num=num;
    }
}

    
